package com.example.springsecuritydemo.costant;

/**
 * 常量类
 *
 * @author chenggang
 * @date 2019/04/08
 */
public interface SecurityConstants {
    /**
     * 默认的用户名密码登录请求处理url
     */
    String DEFAULT_SIGN_IN_PROCESSING_URL_FORM = "/user/login";

    /**
     * 默认的退出请求处理url
     */
    String DEFAULT_LOGOUT_PROCESSING_URL_FORM = "/user/logout";
    /**
     * "/swagger-ui.html"
     * 过滤掉swagger资源
     *
     * @see WebSecurityConfig
     */
    String FILTER_SWAGGER_UI = "/swagger-ui.html";
    /**
     * "/images/**"
     * 过滤掉swagger资源
     *
     * @see WebSecurityConfig
     */
    String FILTER_SWAGGER_IMAGES = "/images/**";
    /**
     * "/webjars/**"
     * 过滤掉swagger资源
     *
     * @see WebSecurityConfig
     */
    String FILTER_SWAGGER_WEBJARS = "/webjars/**";
    /**
     * "/swagger-resources/**"
     * 过滤掉swagger资源
     *
     * @see WebSecurityConfig
     */
    String FILTER_SWAGGER_RESOURCES = "/swagger-resources/**";
    /**
     * "/v2/api-docs"
     * 过滤掉swagger资源
     *
     * @see WebSecurityConfig
     */
    String FILTER_SWAGGER_API_DOCS = "/v2/api-docs";

    /**
     * 导出流水账单
     *
     * @see WebSecurityConfig
     */
    String MERCHANTFLOW_EXPORT = "/merchant/order/management/batch/audit/**";

    String MY_EXPORT = "/**/export/**";

    String AUTHORITY_PREFIX = "leke:authority:";

    /**
     * 侧边栏权限
     */
    String MENURESOURCE = "/bmuser/resource/list";

    String LOGOUT = "/user/logout";

}
